#ifndef _DEFINES_H_
#define _DEFINES_H_

#define S_WIDTH	 	800		//client area resolution
#define S_HEIGHT 	600

#define FPS 500

#define NOOBJECT 200
#define GRAVITY -2.405f

#define FP true
#define THIRD false



template<class To, class From>
inline To jp_cast(From obj)
{
#ifdef _DEBUG
	return dynamic_cast<To>(obj);
#else
	return static_cast<To>(obj);
#endif // _DEBUG
}



#endif //_DEFINES_H_